//
//  GXPersistent.h
//  GXSign
//
//  Created by 蓝其 on 16/11/15.
//  Copyright © 2016年 GX. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RBPersistence : NSObject

#pragma mark - 版本号

/** 存储版本号 */
+ (void)setStoredVersion: (NSString *)version;

/** 获取存储的版本号 */
+ (NSString *)getStoredVersion;

/** 获取工程文件中的版本号 */
+ (NSString *)getProjectVersion;

#pragma mark - 存取

/** 根据key存储数据,传nil置空 */
+ (void)storeValue: (id)value withKey: (NSString *)key;

/** 根据key取数据 */
+ (id)getValueWithKey: (NSString *)key;

+ (void)addShowSearchHistoryWithItem: (NSString *)item userId: (NSString *)userId type: (NSInteger)type;
+ (void)deleteShowSearchHistoryWithItem: (NSString *)item userId: (NSString *)userId type: (NSInteger)type;
+ (void)deleteShowSearchHistoryWithIndex: (NSInteger)index userId: (NSString *)userId type: (NSInteger)type;
+ (void)clearShowSearchHistoryWithUserId: (NSString *)userId type: (NSInteger)type;
+ (NSArray *)getShowSearchHistoryWithUserId: (NSString *)userId type: (NSInteger)type;

@end
